package metier;

import java.io.Serializable;

import hibernate.PhotoRepository;
import bean.PhotoBean;

public class PhotoBusiness extends BaseBusiness<PhotoBean,PhotoRepository, Integer> implements Serializable{

	private static final long serialVersionUID = 1L;
	private int id_photo;
	private String path_photo;
	private int id_eleve;

	public PhotoBusiness() {
		super(new PhotoRepository());
	}

	/**
	 * @return the id_photo
	 */
	public int getId_photo() {
		return id_photo;
	}

	/**
	 * @param id_photo the id_photo to set
	 */
	public void setId_photo(int id_photo) {
		this.id_photo = id_photo;
	}

	@Override
	public void save(PhotoBean obj) {
		super.save(obj);
	}

	public String getPath_photo() {
		return path_photo;
	}

	public void setPath_photo(String path_photo) {
		this.path_photo = path_photo;
	}

	public PhotoBean photoProfil(int id){
		return _repository.GetById(id);

	}

	/**
	 * @return the id_eleve
	 */
	public int getId_eleve() {
		return id_eleve;
	}

	/**
	 * @param id_eleve the id_eleve to set
	 */
	public void setId_eleve(int id_eleve) {
		this.id_eleve = id_eleve;
	}


}
